package com.zx._06_JVM;

import com.zx.common.util.ThreadUtil;

public class JvmOmitStackTraceInFastThrow {

    // 增加jvm参数：   -XX:-OmitStackTraceInFastThrow  后，关闭jit堆栈优化，后面的异常堆栈信息会继续输出
    public static void main(String[] args) {
        String str = null;
        for (int i = 0; i < 1000 * 1000; i++) {
            try {
                System.out.println(str.getBytes());
                ThreadUtil.sleepMill(100L);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

    }
}
